-- GENERATED SPELL FOR [Jaedenar Adept] --


function spell0_7115(pUnit, Event) --@Blink,Self--
pUnit:FullCastSpellOnTarget(14514,pUnit)
pUnit:RegisterEvent('Sorts_7115', 1257, 1)
end

function spell1_7115(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(20832,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7115', 588, 1)
end

function spell2_7115(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7115', 3000, 1)
end

function Sorts_7115(pUnit, Event)
local choix_sorts_7115 = math.random(0, 2)
if choix_sorts_7115 == 0 then
pUnit:RegisterEvent('spell0_7115', 1, 1)
end
if choix_sorts_7115 == 1 then
pUnit:RegisterEvent('spell1_7115', 1, 1)
end
if choix_sorts_7115 == 2 then
pUnit:RegisterEvent('spell2_7115', 1, 1)
end
end

function mob7115_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7115', math.random(1500, 3000), 1)
end

function mob7115_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7115_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7115_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7115, 1, 'mob7115_Action')
RegisterUnitEvent(7115, 2, 'mob7115_Leave')
RegisterUnitEvent(7115, 3, 'mob7115_Kill')
RegisterUnitEvent(7115, 4, 'mob7115_Die')
